﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WF_QLThuVien.Utilities
{
   public static class CKiemTraGiaoDien
    {
       public static bool IsNull(Control ct, string warning, ErrorProvider err)
       {
           if (ct.Text.Length <= 0)
           {
               err.SetError(ct, warning);
               ct.Focus();
               return false;
           }
           else
           {
               err.SetError(ct, "");
               return true;
           }
       }

        public static bool IsNumber(Control ct, string warning, ErrorProvider err)
        {
            return true;
        }
    }
}
